@model ShoppingWebPage.Models.Item

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Item</legend>

    <div class="display-label">name</div>
    <div class="display-field">@Model.name</div>

    <div class="display-label">description</div>
    <div class="display-field">@Model.description</div>

    <div class="display-label">price</div>
    <div class="display-field">@String.Format("{0:F}", Model.price)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


